package cn.tedu.personal_patient.information.services;

import cn.tedu.common.pojo.authentication.CurrentPrincipal;
import cn.tedu.personal_patient.information.pojo.param.PatientAddNewParam;
import cn.tedu.personal_patient.information.pojo.param.PatientUpdateParam;
import cn.tedu.personal_patient.information.pojo.vo.OutPatient;
import cn.tedu.personal_patient.information.pojo.vo.PatientListVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface IPatientService {
    List<PatientListVO> listByUserId(CurrentPrincipal currentPrincipal);

    void insert(CurrentPrincipal currentPrincipal,PatientAddNewParam patientAddNewParam);

    void update(Long id, PatientUpdateParam patientUpdateParam);

    int delete(Long id);

    List<OutPatient> listUserId(CurrentPrincipal currentPrincipal);



}
